﻿@model Tesis.Areas.Modelos.Models.Modelo

@{
	ViewBag.Title = "Details";
	Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
	<legend>@Html.DisplayFor(model => model.Nombre)  -  @Html.DisplayFor(model => model.Abreviatura)</legend>
	<br />
	<table style="border-width: 0px; width: 100%; text-align: justify;">
		<tr>
			<th style="border-width: 0px;">
				<b>@Html.LabelFor(model => model.Descripcion)</b>
			</th>
		</tr>
		<tr>
			<td style="border-width: 0px;">
				<p>@Model.Descripcion</p>
			</td>
		</tr>
	</table> <br /><hr /><br />       

			@{
				if (Model.Binomial != null)
                { 
					<div>@{Html.RenderAction("_Binomial", "Modelo");}</div>
                }

                if (Model.Geometrica != null)
                { 
					<div>@{Html.RenderAction("_Geometrica", "Modelo");}</div>
                }

                if (Model.Hipergeometrica != null)
                { 
					<div>@{Html.RenderAction("_Hipergeometrica", "Modelo");}</div>
                }

                if (Model.Normal != null)
                { 
					<div>@{Html.RenderAction("_Normal", "Modelo");}</div>
                }

                if (Model.Pascal != null)
                { 
					<div>@{Html.RenderAction("_Pascal", "Modelo");}</div>
                }

                if (Model.Poisson != null)
                { 
					<div>@{Html.RenderAction("_Poisson", "Modelo");}</div>
                }

                if (Model.Uniforme != null)
                { 
					<div>@{Html.RenderAction("_Uniforme", "Modelo");}</div>
                }
			}

	<div class="display-label">@Html.LabelFor(model => model.Estado) @Html.DisplayFor(model => model.Estado) </div>
</fieldset>
<p>
	@Html.ActionLink("Editar", "Edit", new { id = Model.ID }) |
	@Html.ActionLink("Regresar a Lista de Modelos", "Index")
</p>
